import requests
from lxml import etree
response = requests.get('http://www.ygdy8.net/html/gndy/oumei/index.html')
response.encoding = 'gb2312'
#选择器

selector = etree.HTML(response.text)
items = selector.xpath("//div[@class='co_content8']//tr[2]//td[2]//a[2]")

for item in items:
    ygdy_url = "http://www.ygdy8.net"+item.xpath('./@href')[0]
    result = requests.get(ygdy_url)
    result.encoding = 'gb2312'
    selector = etree.HTML(result.text)
    print(selector.xpath('//div[@id = "Zoom"]//td//a/@href')[0])
